package com.project.restaurant.user.feign;


import com.project.restaurant.common.api.ResponseResult;
import com.project.restaurant.common.feign.config.FeignConfig;
import com.project.restaurant.thirdpart.mail.Mail;
import com.project.restaurant.user.dto.UpdateFileInfo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "fdfs-part", path = "/fdfs")
public interface FastDFSService {

    @PostMapping(value = "fileUpload")
    ResponseResult<String> fileUpload(@RequestBody byte[] bytes);

    @PostMapping(value = "update")
    ResponseResult<String> update(@RequestBody UpdateFileInfo updateFileInfo);

//    @DeleteMapping(value = "/delete")
//    ResponseResult<Boolean> delete(String remoteFileName);
}
